﻿namespace Manhua3.Client
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Threading;
    using System.Threading.Tasks;
    
    public sealed class LockWrapper : IDisposable
    {
        object _lockPoint;

        public LockWrapper(object lockPoint)
        {
            _lockPoint = lockPoint;
            Monitor.Enter(_lockPoint);
        }

        public void Dispose()
        {
            Monitor.Exit(_lockPoint);
        }
    }
        
}
